package com.factory._15chain;

/**
 * @author Qinye
 * @date 2023/8/13 17:15
 */
public class ConcreteHandler extends  Handler{
    @Override
    public void handleRequest() {
        if(getSuccessor()!=null){
            System.out.println("the request is Passed to "+ getSuccessor());
            getSuccessor().handleRequest();
        }else{
            System.out.println("this request is Handled here");
        }
    }
}
